<template>
  <div>哈哈
    <div>token={{ $store.state.user.token }}</div>
    <button @click="x">点我切换token</button>
    <!-- <Son ref="sonRef" :num="num" @add="num++" @addn="num+=$event" /> -->
    <Son ref="sonRef" v-model="num" />
    <!-- <tom />
    <jerry /> -->
  </div>

</template>

<script>
// import Jerry from './components/Jerry.vue'
import Son from './components/Son.vue'
// import Tom from './components/Tom.vue'
export default {
  components: {
    Son

  },
  data() {
    return {
      num: 3
    }
  },
  mounted() {
    this.$refs.sonRef.focus()
  },
  methods: {
    x() {
      this.$store.commit('user/setToken', 666)
    }
  }
}

</script>

<style>

</style>
